json.extract! @product, :pid, :title, :img, :price, :created_at, :updated_at
